public class Task implements Comparable<Task>{
    private int priority;
    private String tno;
    public int getPriority(){
        return this.priority;
    }
    public String getTno(){
        return this.tno;
    }
    public Task(int priority,String tno){
        this.tno=tno;
        this.priority = priority;
    }
    public int compareTo(Task o){
        return this.priority-o.priority;
    }
}
